/**
 * =====================================================================================
 *       @file  ngx_socket.h
 *      @brief  
 *
 *  Detailed description starts here.
 *
 *   @internal
 *     Created  2012年05月09日 22时14分27秒 
 *    Revision  1.0.0.0
 *    Compiler  gcc/g++
 *
 *     @author  luis
 * =====================================================================================
 */
#ifndef _NGX_SOCKET_H_INCLUDED_
#define _NGX_SOCKET_H_INCLUDED_

#include <sys/socket.h>
#include <fcntl.h>
#include <unistd.h>

typedef int ngx_socket_t;

#define ngx_socket              socket
#define ngx_close_socket        close 

#define ngx_nonblocking(s)      fcntl(s, F_SETFL, fcntl(s, F_GETFL) | O_NONBLOCK)

#endif
